using System;
using NUnit.Framework;

namespace ProgrammingLanguageNr1
{
	[TestFixture()]
	public class MemorySpace_TEST
	{
		[Test()]
		public void SaveVariableToMemorySpace ()
		{
			MemorySpace memorySpace = new MemorySpace("globals");
			ReturnValue val = new ReturnValue(5.9f);
			memorySpace.setValue("x", val);
			Assert.AreEqual(ReturnType.FLOAT, memorySpace.getValue("x").getReturnType());
			Assert.AreEqual(5.9f, memorySpace.getValue("x").FloatValue);
		}
	}
}

